const document = {
  state: {
    documentDetail: '',
    msgId: '',
    billType: 'auditingWait',
  },
  mutations: {
    SET_DOCUMENTDETAIL: (state: any, documentDetail: any) => {
      state.documentDetail = documentDetail;
    },
    REMOVE_DOCUMENTDETAIL: (state: any, documentDetail: any) => {
      state.documentDetail = '';
    },
    SET_MSGID: (state: any, msgId: any) => {
      state.msgId = msgId;
    },
    REMOVE_MSGID: (state: any, msgID: any) => {
      state.msgID = '';
    },
    SET_BILLTYPE: (state: any, billType: any) => {
      state.billType = billType;
    },
  },
  actions: {
    setDocumentDetail({ commit }: any, documentDetail: any) {
      commit('SET_DOCUMENTDETAIL', documentDetail);
    },
    removeDocumentDetail({ commit }: any) {
      commit('REMOVE_DOCUMENTDETAIL', '');
    },
    setMsgId({ commit }: any, msgId: any) {
      commit('SET_MSGID', msgId);
    },
    removeMsgId({ commit }: any) {
      commit('REMOVE_MSGID', '');
    },
    setBillType({ commit }: any, billType: any) {
      commit('SET_BILLTYPE', billType);
    },
  },
};

export default document;
